package team.first.movieapiv2.doc;

import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Id;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;

import java.time.LocalDate;
import java.util.List;

@Entity(value = "user",  useDiscriminator = false)
@Data
@Accessors(chain = true)
@ApiModel("用户文档")
public class UserDoc {

    @Id
    @ApiModelProperty(value = "文档编号", example = "619f48fae2f3f25894660f73")
    private ObjectId objectId;

    @ApiModelProperty(value = "用户姓名", example = "杨乐")
    private String username;

    @ApiModelProperty(value = "密码", example = "123")
    private String password;

    @ApiModelProperty(value = "电子邮箱", example = "1830552986@163.com")
    private String email;

    @ApiModelProperty(value = "昵称", example = "冷芝士鸭")
    private String nickname;

    @ApiModelProperty(value = "用户头像", example = "1.jpg")
    private String avatar;
}
